package com.chengdu.chun.service;

import com.chengdu.chun.po.Student;

import java.util.List;

public interface StudentService {
    /**
     * 根据老师获取管理学生的总人数
     * @param teacherid
     * @return
     */
    public Integer selectStudentCountByTeacher(int teacherid);

    /**
     * 获取已经入住宿舍的学生总人数
     * @return
     */
    int getStudentCountByroomTeacher();

    public List<Student> getStudentByClasses(int classesid);

    public List<Student> getStudentByRoom(int rid);

    public List<Student> getStudentBySnameAndMobile(long cid,String sname, String mobile);

    public int insertStudent(Student student);

    public Student studentInfoBysid(Integer sid);

    public boolean changeStatus(Integer cstatus, Integer sid);
}
